package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.OrderdetailstbEntity;
import dao.mapper.OrderdetailstbDAOI;

/**
*@author JiangFan
*/
public class OrderdetailstbDAO extends BaseDao implements OrderdetailstbDAOI {

}
class OrderdetailstbRowMapper implements RowMapper<OrderdetailstbEntity>{
	@Override
	public OrderdetailstbEntity rowmap(ResultSet set) throws  SQLException{
		return new OrderdetailstbEntity(
			set.getString("orderDetails_id"),
			set.getString("order_id"),
			set.getString("goods_name"),
			set.getString("goods_id"),
			set.getDouble("subtotal"),
			set.getInt("orderDetails_number")
		);
	}
}
